<?php

namespace app\backend\controller;


use app\backend\service\DoubleService;
class Double extends Backend
{
    /**
     * 金币明细
     * @param DoubleService $service
     * @return array|string
     * @throws \think\db\exception\DbException
     */
    public function index(DoubleService $service)
    {
        if ($this->request->isAjax()) {
            return $this->success($service->lists($this->request->param()));
        }
        return $this->fetch('', $service->dataLabel());
    }
}